﻿class com.troyworks.datastructures.graph.PatternFactory {
	private var handleEvent:Function;
	public var name = "unnamed";
	public function PatternFactory(name:String) {
		this.name = (name != null)? name: this.name;
		this.handleEvent = this.notInitedEventhandler;
	}
	public static function createToggle(core:Object, name1:Array, event:Array):Void {
	}
	public static function createDiamond(core:Object, name1:String, name2:String):Void {
	}
	//public INode
	public function init():Void {
		this.handleEvent = initedEventhandler;
	}
	/////////////////////////////////
	private function notInitedEventhandler(a:String, b:String, c:String):Void {
		trace("notInitedEventhandler "+this.name+" a: "+a+" b: "+b+" c:"+c);
	}
	private function initedEventhandler(a:String, b:String, c:String):Void {
		trace("initedEventhandler "+this.name+" a: "+a+" b: "+b+" c:"+c);
	}
}
